home *** CD-ROM | disk | FTP | other *** search
- Path: sun001.spd.dsccc.com!spd!jmccarty
- From: jmccarty@spd.dsccc.com (Mike McCarty)
- Newsgroups: comp.lang.c
- Subject: Re: Tough FACTORIAL math problem...
- Date: 16 Feb 1996 19:49:01 GMT
- Organization: DSC Communications Corporation, Plano, Texas USA
- Message-ID: <4g2n3d$kqe@sun001.spd.dsccc.com>
- References: <4fr8be$ass@news.iconn.net> <31224679.6193@born.com> <4fv74c$chq@gatekeeper.alcatel.no> <4fvgbu$kmb@winx03.informatik.uni-wuerzburg.de>
- NNTP-Posting-Host: aplo139.spd.dsccc.com
-
- In article <4fvgbu$kmb@winx03.informatik.uni-wuerzburg.de>,
- Jochen Schoof <schoof@informatik.uni-wuerzburg.de> wrote:
-
- [stuff gone]
-
- )When multiplying to another number y the LSD of the result can be determined
- )by calculating LSD(n*LSD(y)) in most cases (see tabular below).
-
- [snip]
-
- )Storing additional digits is not neccessary. If two numbers of at least
- )two digits have no zeroes in their rightmost digit, the two rightmost
- )digits of their product cannot both be zero and are determined from the
- )two rightmost digits of the two numbers. If you don't believe me feel
- )free to expand the tabular above for these numbers. Unfortunately you'll
- )have to write down 8100 entries... :-)
-
- So 125 * 108 cannot end in 2 zeroes, correct?
-
- Mike
- ----
- char *p="char *p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
-
- I don't speak for DSC. <- They make me say that.
-